package com.service.impl;

import com.mapper.UserLaunchMapper;
import com.pojo.UserConfirm;
import com.pojo.UserLaunch;
import com.service.UserLaunchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserLaunchServiceImpl implements UserLaunchService {
    @Autowired
    private UserLaunchMapper userLaunchMapper;
    @Override
    public int addUserLaunch(UserLaunch userLaunch) {
        return userLaunchMapper.addUserLaunch(userLaunch);
    }

    @Override
    public int insertUserConfirm(UserConfirm userConfirm) {
        return userLaunchMapper.insertUserConfirm(userConfirm);
    }

    @Override
    public UserLaunch selectUserLaunchByUserId(long userid) {
        return userLaunchMapper.selectUserLaunchByUserId(userid);
    }

    @Override
    public int updateUserLaunch(UserLaunch userLaunch) {
        return userLaunchMapper.updateUserLaunch(userLaunch);
    }
}
